package com.sharkpro;


import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;

import java.math.BigDecimal;

/**
 * @author jianxin.wei
 * @description
 * @date 2024/12/25 16:59
 */
public class Main {
    public static void main(String[] args) {
        String str = "\n" +
                "{\n" +
                "    \"code\": \"00000\",\n" +
                "    \"message\": \"调用成功\",\n" +
                "    \"relaTraceId\": \"b8fb7bd9ff7247fdaa4d58a080f9be51,128514-1736749052065-3444091\",\n" +
                "    \"total\": 0,\n" +
                "    \"data\": {\n" +
                "        \"code\": \"00000\",\n" +
                "        \"message\": \"success\",\n" +
                "        \"data\": {\n" +
                "            \"supplierList\": [\n" +
                "                {\n" +
                "                    \"supplierName\": \"西安双英科技有限公司\"\n" +
                "                },\n" +
                "                {\n" +
                "                    \"supplierName\": \"上海晨远科技有限公司\"\n" +
                "                }\n" +
                "            ]\n" +
                "        },\n" +
                "        \"total\": 0,\n" +
                "        \"traceID\": \"b8fb7bd9ff7247fdaa4d58a080f9be51,128514-1736749052065-3444091\",\n" +
                "        \"reminderType\": null\n" +
                "    },\n" +
                "    \"returnTimestamp\": 1736749052154\n" +
                "}";
        JSONObject object = JSONUtil.parseObj(str);
        System.out.println(object.getJSONObject("data").getJSONObject("data").getJSONArray("materialList"));
    }
}
